package com.right.dao;

import com.right.entity.Admin;
import com.right.entity.Users;

public interface AdminDao {
	/**
	 * 管理员登入
	 * @param adminname
	 * @param adminpwd
	 * @return
	 */
	public boolean login (String adminname,String adminpwd);
	/**
	 * 通过用户名获取ID
	 * @param adminname
	 * @return
	 */
	public Admin getIdByName(String adminname);
	
	/**
	 * 通过ID获得对象
	 * @param userid
	 * @return
	 */
	public Admin getAdminByid(int adminid);
}
